<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="./index.css">
</head>

<body>
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide" style="background:blue">1</div>
            <div class="swiper-slide" style="background:red">2</div>
            <div class="swiper-slide" style="background:green">3</div>
        </div>
        <div class="swiper-button-prev">
            <</div>
                <div class="swiper-button-next">></div>
                <ul class="swiper-pagination">

                </ul>
        </div>
        <script src="./index.js "></script>
        <script>
            new Swiper('.swiper-container', {
                direction: 'horizontal',
                // vertical
                autoplay: 2000,
                pagination: {
                    el: 'swiper-pagination'
                },
                navigation: {
                    nextEl: '.swiper-button-next',
                    prevEl: '.swiper-button-prev'
                }
            })
        </script>
</body>

</html>